#ifndef MYDRAGABLEWIDGET_H
#define MYDRAGABLEWIDGET_H

#include <QWidget>

class MyDragableWidget : public QWidget
{
    Q_OBJECT
public:
    enum DIRECTION{HORIZONTAL1, VERTICAL1};
    explicit MyDragableWidget(QWidget *centerWidget, DIRECTION dire, QWidget *parent = nullptr);

    int getMouseSensitivity() const;
    void setMouseSensitivity(int value);

signals:

public slots:

protected:
    void resizeEvent(QResizeEvent *event);
    bool eventFilter(QObject *obj, QEvent *event);

private:
    int mouseSensitivity; //鼠标林敏度
    QWidget *centerWidget;
    DIRECTION direction;


};

#endif // MYDRAGABLEWIDGET_H
